package com.aipartner.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * WeChat Login Request DTO
 * 
 * @author AI Partner Team
 * @since 2024-01-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "WeChat Login Request")
public class WechatLoginRequest {
    
    @ApiModelProperty(value = "WeChat authorization code", required = true, example = "041234567890")
    @NotBlank(message = "Authorization code cannot be empty")
    private String code;
    
    @ApiModelProperty(value = "User info from WeChat", example = "{\"nickname\":\"User\",\"avatarUrl\":\"https://...\"}")
    private String userInfo;
}